package com.magic.gre.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.noname.lib_base_java.entity.BaseSelectBean;

/**
 * Author: Lmoumou
 * Date: 2019-01-07 18:06
 * 文件名: WordsBean
 * 描述:
 */
public class WordsBean extends BaseSelectBean implements Parcelable {
    /**
     * id : 1080407668318298139
     * updateTime : null
     * createTime : null
     * name : abstain
     * symbol : [əb'sten]
     * pronunciation : null
     * meaning : v. to refrain deliberately and often with an effort of self-denial from an action or practice 放弃，戒除
     * status : 1
     * thesaurusId : 1075675478591766530
     * sameWord : null
     * example : null
     * thesaurusName : null
     * unitName : null
     * userName : null
     * subItems : null
     */

    private String id;
    private String updateTime;
    private String createTime;
    private String name;
    private String symbol;
    private String pronunciation;
    private String meaning;
    private int status;
    private String thesaurusId;
    private String sameWord;
    private String example;
    private String thesaurusName;
    private String unitName;
    private String userName;
    private String subItems;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public String getPronunciation() {
        return pronunciation;
    }

    public void setPronunciation(String pronunciation) {
        this.pronunciation = pronunciation;
    }

    public String getMeaning() {
        return meaning;
    }

    public void setMeaning(String meaning) {
        this.meaning = meaning;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getThesaurusId() {
        return thesaurusId;
    }

    public void setThesaurusId(String thesaurusId) {
        this.thesaurusId = thesaurusId;
    }

    public String getSameWord() {
        return sameWord;
    }

    public void setSameWord(String sameWord) {
        this.sameWord = sameWord;
    }

    public String getExample() {
        return example;
    }

    public void setExample(String example) {
        this.example = example;
    }

    public String getThesaurusName() {
        return thesaurusName;
    }

    public void setThesaurusName(String thesaurusName) {
        this.thesaurusName = thesaurusName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSubItems() {
        return subItems;
    }

    public void setSubItems(String subItems) {
        this.subItems = subItems;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.updateTime);
        dest.writeString(this.createTime);
        dest.writeString(this.name);
        dest.writeString(this.symbol);
        dest.writeString(this.pronunciation);
        dest.writeString(this.meaning);
        dest.writeInt(this.status);
        dest.writeString(this.thesaurusId);
        dest.writeString(this.sameWord);
        dest.writeString(this.example);
        dest.writeString(this.thesaurusName);
        dest.writeString(this.unitName);
        dest.writeString(this.userName);
        dest.writeString(this.subItems);
        dest.writeByte(this.isSelect ? (byte) 1 : (byte) 0);
    }

    public WordsBean() {
    }

    protected WordsBean(Parcel in) {
        this.id = in.readString();
        this.updateTime = in.readString();
        this.createTime = in.readString();
        this.name = in.readString();
        this.symbol = in.readString();
        this.pronunciation = in.readString();
        this.meaning = in.readString();
        this.status = in.readInt();
        this.thesaurusId = in.readString();
        this.sameWord = in.readString();
        this.example = in.readString();
        this.thesaurusName = in.readString();
        this.unitName = in.readString();
        this.userName = in.readString();
        this.subItems = in.readString();
        this.isSelect = in.readByte() != 0;
    }

    public static final Parcelable.Creator<WordsBean> CREATOR = new Parcelable.Creator<WordsBean>() {
        @Override
        public WordsBean createFromParcel(Parcel source) {
            return new WordsBean(source);
        }

        @Override
        public WordsBean[] newArray(int size) {
            return new WordsBean[size];
        }
    };
}
